<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf"%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/warehouse/handworkproduct_form_add.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/handworkproduct_form/handworkproduct_form_addEntity.shtml">
		<section class="panel panel-default">
		<div class="panel-body">
			<div class="form-group">
				<label class="col-sm-3 control-label">仓位</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" name="handworkFormMap.warehouse"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">物料编码</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" name="handworkFormMap.materialNo"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">产品名称</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" name="handworkFormMap.productName"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">单位</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" name="handworkFormMap.unit"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">模具编码</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" name="handworkFormMap.mouldNo"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">长</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh" id="length"
						name="handworkFormMap.length"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">宽</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh" id="width"
						name="handworkFormMap.width"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">高</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh" id="height"
						name="handworkFormMap.height"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">体积</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly id="volume"
						name="handworkFormMap.volume"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">客户编号</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" name="handworkFormMap.clientNo"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">客户名称</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" name="handworkFormMap.clientName"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">通用件编码</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" name="handworkFormMap.commonNo"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">重量</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh" name="handworkFormMap.weight"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">每包件数</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh" name="handworkFormMap.perPiece"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">配套件数</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh" name="handworkFormMap.matingCases"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">标准产能</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh" name="handworkFormMap.standardCapacity"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" name="handworkFormMap.remark"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
		</div>
		<footer class="panel-footer text-right bg-light lter">
		<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> </section>
	</form>
	<script type="text/javascript">
	$(function() {
		$("#length").change(function() {
			var length = $("#length").val();
			var width = $("#width").val();
			var height = $("#height").val();
			$("#volume").val(length*width*height);
		});
		$("#width").change(function() {
			var length = $("#length").val();
			var width = $("#width").val();
			var height = $("#height").val();
			$("#volume").val(length*width*height);
		});
		$("#height").change(function() {
			var length = $("#length").val();
			var width = $("#width").val();
			var height = $("#height").val();
			$("#volume").val(length*width*height);
		});
	});
	</script>
</body>
</html>